/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author XYMTOP
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface Eorder extends BasicModel<Eorder> {
  name?: string; // name
  address?: string; // address
  phone?: string; // phone
  hezuo?: string; // hezuo
  manager?: string; // manager
  money?: string; // money
}

export const eorderList = (params?: Eorder | any) =>
  defHttp.get<Eorder>({ url: adminPath + '/eorder/eorder/list', params });

export const eorderListData = (params?: Eorder | any) =>
  defHttp.post<Page<Eorder>>({ url: adminPath + '/eorder/eorder/listData', params });

export const eorderForm = (params?: Eorder | any) =>
  defHttp.get<Eorder>({ url: adminPath + '/eorder/eorder/form', params });

export const eorderSave = (params?: any, data?: Eorder | any) =>
  defHttp.postJson<Eorder>({ url: adminPath + '/eorder/eorder/save', params, data });

export const eorderDelete = (params?: Eorder | any) =>
  defHttp.get<Eorder>({ url: adminPath + '/eorder/eorder/delete', params });
